package com.powergisol.gis.model;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class SysUser extends User {
    /**
     * 用户ID
     */
    @Getter
    private Integer id;

    @Getter
    private String name;

    public SysUser(Integer id, String name, String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id = id;
        this.name = name;
    }
}